package com.wrs.examsystem.mapper;

import com.wrs.examsystem.entity.Answer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wrs.examsystem.entity.bean.CorrectBean;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 王荣升
 * @since 2024-05-15
 */
public interface AnswerMapper extends BaseMapper<Answer> {

    @Update("update answer set answer_mark=#{answerMark} where topic_id = #{topicId} and student_id = #{studentId}")
    Integer correct(Integer topicId,Integer studentId,String answerMark);
}
